package com.jhhc.StormSurgeForecast.StormSurge.Service;


import com.jhhc.StormSurgeForecast.AstronomicalTide.Pojo.BDMS_CALCULATESCHEME_M1;
import com.jhhc.StormSurgeForecast.StormSurge.Pojo.FBC.BDMS_FBC_OCEANMODEL_B;
import com.jhhc.StormSurgeForecast.StormSurge.Pojo.FBC.BDMS_FBC_RESULT_A;
import com.jhhc.StormSurgeForecast.StormSurge.Pojo.GZABO.*;
import org.apache.ibatis.annotations.Param;

import java.io.IOException;
import java.text.ParseException;
import java.util.List;
import java.util.Objects;


public interface BDMS_FBC_RESULT_AService {

    //获取预报格点的计算结果  CSCHEMEID
    List<BDMS_FBC_RESULT_A> getCalResultsByGrid (String CalSchemeId, String AreaName,
   String  StartTime, String EndTime, Integer Dttp, Integer GridId);

    Result GetCalResultsByDomain(String calSchemeId, String startTime, String endTime, Integer dttp,
                                  boolean isData);

    List<int[]> GetCalResultsByDomain1(String calSchemeId,String startTime,String endTime,Integer dttp);


    int batchInsert(String path,String time,String calSchemeId,String areaName);

    /**
     *东中国海、南中国海模型场数据入库
     */
    void insertByDomain(List<String> filePaths, String url, String token, String localPath,
                        String calSchemeId, String areaName, BDMS_FBC_OCEANMODEL_B bdmsFbcOceanmodelB,
                        BDMS_CALCULATESCHEME_M1 bdmsCalculateschemeM1);

    void insertCalResultByCSDomain(String path,String time,String cschemeId,String areaname,String modelId);

//    int insertCalResultByCSDomain(String path63,String path64, String time, String cschemeId,
//         String areaname) throws IOException, ParseException;

    List<BDMS_FBC_RESULT_A> getGridDataBySeaWall( String CSCHEMEID,String Grid,
                                                 String StartTime,
                                               String EndTime,
                                                Integer DTTP);
    ResultData GetDateByGrid(String type, String calSchemeId, String startTime, String endTime,
                             String grid, boolean rule, String typeofpier,Integer number,String dtNm);

    List<BDMS_FBC_RESULT_A> queryByCschemeId(@Param("cschemeId")String cschemeId);

    int deleteByCschemeId(@Param("cschemeId") String cschemeId);
}
